package com.nf.db.handler.list;

import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import static com.nf.db.RowProcessor.DEFAULT_ROWPROCESSOR;

/**
 * 此类自己不是泛型类，使用此类型固定返回的类型是
 * List<Map<String,Object>>
 */
public class MapListHandler extends AbstractListHandler<Map<String, Object>> {
    @Override
    protected Map<String, Object> handleRow(ResultSet rs) throws SQLException {
        return DEFAULT_ROWPROCESSOR.toMap(rs);
    }
}
